package top.xuziyi.crawler.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import top.xuziyi.common.pojo.StockIndustry;

public interface StockIndustryDao extends JpaRepository<StockIndustry, Long>
        , JpaSpecificationExecutor<StockIndustry> {

    //根据股票代码查询数据
    @Query(value = "select count(1) from stock_industry where code = ?", nativeQuery = true)
    public int findByCode(String Code);

}
